import request from '@/utils/request'

// 携带token
const token = localStorage.getItem('token')

/**
 * 上传图片
 */
export const upload = (file) => {
    return request.post('/admin/commonn/upload', file, {
        headers: {
            'Content-Type': 'multipart/form-data',
            'token': this.token
        }
    })
}